#!/bin/bash

#------------------------------------------------------------------------------
#Filename:	74719-pipefile.sh
#Version:	1.1
#Date:		2013/07/15
#Author:	yuanhui.shi
#Email:		yuanhui.shi@cs2c.com.cn
#Summary:	02.01系统核心功能-01文件系统-03文件分类-04验证系统可识别管道类型文件
#Notes:		测试linux可以识别管道类型文件
#Copyright:	China Standard Software Co.,Ltd.
#History:
#		Version 1.0,2013/07/15
#		-The first one
#		Version 1.1,2013/09/04
#		-Modify the script to satisfy the shell standard
#------------------------------------------------------------------------------


PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

source ../../lib/Echo.sh

function CleanData ()
{
 cd ..
 rm -rf testdir
 EchoInfo "74719-pipefile.sh执行完毕"
}
trap "CleanData" EXIT

mkdir testdir
cd testdir

mknod test-pipe p
[ -p test-pipe ] 
EchoResult "系统可以识别管道类型文件" 


